import 'dart:ui';

import 'package:flutter/material.dart';

class HomeState {
  double scale = 1.0;
  double previousScale = 1.0;
  double speed = 20.0;
  Color currentColor = Colors.white;
  String txt ="这是要放大缩小的跑马灯文字，可以根据手势来放大缩小它。";

  HomeState init() {
    return HomeState()..scale=scale..previousScale=previousScale;
  }

  HomeState clone() {
    return HomeState()..scale=scale..previousScale=previousScale..currentColor=currentColor..txt=txt;
  }
}
